import {createRouter, createWebHistory} from "vue-router";

export const router = createRouter({

  history:createWebHistory(import.meta.env.BASE_URL),
  routes:[
    {
      path: '/book',
      component:()=>import('@/view/Book.vue')
    },
    {
      path: '/bookAdd',
      component:()=>import('@/view/BookAddOrEdit.vue')
    },
    {
      path: '/bookEdit/:id',
      component:()=>import('@/view/BookAddOrEdit.vue')
    }
  ]

})
